|
LM BUILD LIGHT MAPS THREAD
This command is the same as the LM Build Light Maps command except the light mapping is started as a thread and immediately returns control to your DarkBasic application whilst the light maps are calculated, this allows you to get and display the status of the light mapper whilst it is in progress.
LM Build Light Maps Thread Texture Size, Quality, Blur Radius
Texture Size
The resolution you want to use for the lightmaps, minimum of 32.
Quality
The quality of the lightmaps, defined in lightmap pixels per DarkBasic unit.
Blur Radius
The amount of blurring to apply to shadows.
This command does not return a value.
It is not recommended that you let your program continue to the main rendering loop until LM Get Complete returns 1 at which point the light mapping thread has finished and has applied the lightmaps to the objects. You cannot call light map commands that change parameters whilst the thread is in progress, doing so will result in a warning box but will not effect the light map process.
|